package typejump.commands;

import typejump.TypeJump;
import typejump.engine.GameEngine;
import typejump.objects.Actor;

public class DevReset implements TextCommand {

	@Override
	public boolean matches(String command) {
		return command.equalsIgnoreCase("dev reset");
	}

	@Override
	public void act(String command) {
		Actor player = TypeJump.getInst().getPlayer();
		GameEngine.resetPlayerPosition();
		player.vx(0);
		player.vy(0);
		GameEngine.addTextEffect("RESET PLAYER POSITION", "dev");
	}

}
